import request from '@/utils/request'

const api = {
    upload: '/common/upload',
    download: '/common/download'
}

export function uploadPicture (parameter) {
    return request({
      url: api.upload,
      method: 'post',
      data: parameter
    })
}

export function downloadPicture (parameter) {
    return request({
      url: api.download,
      method: 'get',
      params: {
        fileName: parameter
      }
    })
}
